package com.fenghongzhang.a1810.mvp.presenter;

import com.fenghongzhang.a1810.mvp.model.IModel;
import com.fenghongzhang.a1810.mvp.view.IView;

import javax.inject.Inject;

/**
 * presenter是view和model交互的桥梁.所有需要拿到这个两个对象.
 * 但是他又是一个基础的presenter.类型不能限定死了.
 * 所以使用泛型来限制一下.
 */
public class BasePresenter<M extends IModel, V extends IView> implements IPresenter{

    protected M mModel;
    protected V mView;


    public BasePresenter(M mModel, V mView) {
        this.mModel = mModel;
        this.mView = mView;
    }

    @Override
    public void destroy() {

    }
}

